#include "comm.hpp"
int main()
{
    int fd = open(FIFO_FILE, O_WRONLY);
    if (fd < 0)
    {
        perror("open file fail");
        exit(FIFO_OPEN_ERR);
    }
    cout << "client open file" << endl;
    string line;
    while (true)
    {
        cout << "please Enter@";
        getline(cin, line);
        write(fd, line.c_str(), line.size());
    }
    close(fd);
    //return 0;
     return 0;
}
